//
//  ViewController.swift
//  LMHCategory
//
//  Created by GeorgeTownsBillups on 05/10/2018.
//  Copyright (c) 2018 GeorgeTownsBillups. All rights reserved.
//

import UIKit
import LMHCategory

class ViewController: UIViewController {

    var count: Int = 0
    
    @IBAction func act(_ sender: Any) {
        
       let v = FViewController.instantiateFromXib
        navigationController?.pushViewController(v, animated: true)
    }
    
    @IBOutlet weak var label: UILabel!
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let line = 70
        UILabel.changeLineSpaceWordSpace(label, lineSpace: CGFloat(line), wordSpace: 10)
        
        print(String.getWordSize(label.text!, font: label.font, size: CGSize(width: UIScreen.main.bounds.width-40, height: CGFloat(MAXFLOAT)), lineSpace: CGFloat(line), wordSpace: 10))
        
        
        
//        let sub = [1,2,3,4]
//        let a = sub[safe: 1]
//
//        print(a)
//
//
//        let al = zip([1,2], [3,4])
       // print(dump(al))
        
        
        var arr = ["1","20","3","4","6","7"]
        arr[2,3] = ["0","0"]
        
        print(arr)
        
        if let ab = arr[safe: 0] {
            print(ab)
        }
        
//        let bv = arr[safe: 100]
//        print(bv)
        
        
//        let kobe = Person(name: "kobe", age: "38")
//        let james = Person(name: "james", age: "33")
//        let durant = Person(name: "durant", age: "31")
//        let wade = Person(name: "wade", age: "31")
//        let anthory = Person(name: "anthory", age: "37")
//
//        var arr = [kobe,james,durant,durant,wade,anthory]
        
       // print(arr.count)
        arr.remove(["2","3"])
      //  arr.remove([james,wade,anthory])
//        arr.remove(at: 0)
       // print(arr)

    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

struct Person: Equatable {
    var name: String?
    var age: String?
    
}
